<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<script type="text/javascript" src="js/jquery-1.7.2.min.js">	</script>
	
	<script type="text/javascript">
	   $.get("data.jsp",{},function(data){
	       //alert(data);
	      $("#loaddata").html(data); 
	   });
  
	   
	   $.get("data1.html",{},function(data){
		      // alert(data);
		      $("#loaddata2").html(data); 
		});
	  
	 $(function(){
		 $("dataList").html("<c:if test='${(status.index + 1)>2}'><td>${status.index + 1}</td><td>${user.name}</td><td>${user.password}</td></c:if>");
	 })  


</script>
	
  </head>
  
  <body>
       <div id="data">${hello}</div>
      <div id="loaddata"></div>
      <div id="loaddata2"></div>
      
      
      <table id="loadList">
        <c:forEach items="${plist}"  var="user"  varStatus="status">
			   <tr  id="dataList">
			    
				    <c:if test="${(status.index + 1)>1}">
				
						 <td>
							 ${status.index + 1}
						 </td>
						 <td align = "center">${user.name}</td>
						 <td align = "center">${user.password}</td>
					 
					 </c:if>
				 
			 </tr>
		</c:forEach>
      </table>
  </body>
</html>
